import com.alibaba.algo.Application;
import com.alibaba.algo.EventH1;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * Created by IntelliJ IDEA.
 * User: glorysongglory
 * Date: 2020/11/17
 * Time: 17:50
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
public class EventBusTest {

    @Autowired
    private EventH1 eventHandler;

    @Test
    public void postEvent() {
        eventHandler.eventPost();
    }

}
